package guda.talk.web.common;

import com.alibaba.citrus.service.pull.ToolFactory;
import guda.talk.biz.common.auth.AuthUser;


/**
 * Created by pyshift on 14-11-9.
 */
public class UserTools implements ToolFactory {

    public boolean isSingleton() {
        return false;
    }

    public Object createTool() throws Exception {
        return AuthUser.getCurrentUser();
    }

    public AuthUser getUser() {
        return AuthUser.getCurrentUser();
    }


}
